package com.example.safeassistan.home.adapter;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.recyclerview.widget.RecyclerView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.example.safeassistan.R;
import com.example.safeassistan.risk.model.RiskPointPersonModel;

import java.util.List;

public class RiskDetailPersonFragmentAdapter extends BaseQuickAdapter<RiskPointPersonModel.ResultDTO,BaseViewHolder> {
    public RiskDetailPersonFragmentAdapter(@Nullable List<RiskPointPersonModel.ResultDTO> data) {
        super(R.layout.item_common_list, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, RiskPointPersonModel.ResultDTO item) {
        helper.setText(R.id.tvText,item.getRealname());
    }

}